<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
    <title></title>
    <meta name="keywords" content="智辉CRM">
    <meta name="description" content="智辉CRM">
    <link rel="Bookmark" href="favicon.ico">
    <link rel="Shortcut Icon" href="favicon.ico" />
    <!--[if lt IE 9]> 
    <script type="text/javascript" src="Lib/html5.js"></script>
    <script type="text/javascript" src="Lib/respond.min.js"></script>
    <script type="text/javascript" src="Lib/PIE_IE678.js"></script>
    <![endif]-->
    <link href="__PUBLIC__/css/H-ui.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
    <!--自己的样式-->
    <!-- <link href="Tpl/Assistant/common/account/account_lst.css" rel="stylesheet" type="text/css"> -->
    <link href="Tpl/Assistant/common/expense/expense_add.css" rel="stylesheet" type="text/css">
    <link href="Tpl/Service/common/order/page01.css" rel="stylesheet" type="text/css" />
    <style>
        td{
            font-size: 14px
        }
        body{
            width: 1235px
        }
    </style>
    <!--[if IE 6]> 
    <script type="text/javascript" src="Lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('.pngfix,.icon');</script> 
    <![endif]-->
    
</head>

<body>
    <assign name="getType" value="$Think.get.type"/>
    <!-- <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 财务管理 <span class="c-gray en">&gt;</span> 订单列表 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a><a class="btn  radius r mr-20 {$getType==1?'btn-warning':'btn-default'}" style="line-height:1.6em;margin-top:3px" href="{:U('orderList', array('type'=>1))}"  title="" > 微社区水果</a><a class="btn  radius r mr-20 {$getType==2?'btn-warning':'btn-default'}" style="line-height:1.6em;margin-top:3px" href="{:U('orderList', array('type'=>2))}"   title="" > 物业费账单</a></nav> -->
<!--导航-->
<div id="nav">
    <div class="navbox">
        <ul>
            <a href="{:U('Expense/add',array('room_id'=>$v['id']))}"><li class=""><i class="Hui-iconfont">&#xe6b6;</i>添加缴费项目</li></a>
                <a href="{:U('Expense/lst',array('room_id'=>$v['id']))}"><li class=""><i class="Hui-iconfont">&#xe667;</i>费用列表</li></a>
                <a href="{:U('Account/lst',array('room_id'=>$v['id']))}"><li class=""><i class="Hui-iconfont">&#xe6e0;</i>账单列表</li></a>
                <a href="{:U('Account/logLst',array('room_id'=>$v['id']))}"><li class="active1"><i class="Hui-iconfont">&#xe63a;</i>缴费记录</li></a>
        </ul>

    </div>
</div>

<div class="pd-20">
    <form action="" method="get">
    <input type="hidden" name="m" value="Assistant"/>
    <input type="hidden" name="c" value="Account"/>
    <input type="hidden" name="a" value="logLst"/>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
    <div class="text-l">
     <!-- 账单类型： -->
     <!-- <div class="check-box check-pad"><assign name="type" value="$Think.get.type"/>
        <input type="radio" id="radio-1" name="type" value="1" {$type==1?'checked':''}>
        <label for="radio-1">微社区水果</label>
      </div>
      <div class="check-box check-pad" style="padding-right: 100px;">
        <input type="radio" id="radio-2" name="type" value="2" {$type==2?'checked':''}>
        <label for="radio-2">物业费账单</label>
      </div> -->
      <!--<div class="check-box check-pad" style="padding-right: 40px">-->
        <!--<input type="radio" id="radio-3" name="type" value="3" {$type==3?'checked':''}>-->
        <!--<label for="radio-3">微社区自助缴费</label>-->
      <!--</div>-->
     日期范围：
        <input type="text" onfocus="WdatePicker()" id="datemin" class="input-text Wdate" name='start_time' value="{$Think.get.start_time}" style="width:120px;">
        -
        <input type="text" onfocus="WdatePicker()" name='end_time' id="datemax" class="input-text Wdate" value="{$Think.get.end_time}" style="width:120px;margin-right: 100px">

            <assign name="getPayWay" value="$Think.get.payWay"/>
            <select name="payWay" id="" class="select" style="width: 10%;height: 30px">
                <option  value="">支付方式</option>
                    <volist name="payWay" id="v">
                    <option value="{$v.value}"  {$v['value']==$getPayWay?'selected':''}>{$v.text}</option>
                    </volist>
            </select>
     <!-- 区域：
        <span class="select-box" style="width: 10%">
          <select class="select" size="1" name="">
            <option value="" selected>请选择区域</option>
            <option value="" >越城区</option>
            <option value="1">柯桥区</option>
          </select>
        </span> -->
         <!-- <input type="text" id="search" class="input-text" style="width:250px" placeholder="输入姓名、电话" id="" name="key"> -->
        <!--<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜订单</button>-->
        <span class="r">
        <input type="text" id="search" class="input-text" style="width:250px;margin-right: 4px" placeholder="输入姓名、电话" id="" value="{$Think.get.key}" name="key">
        <button type="submit" class="btn btn-danger-outline radius"><i class="Hui-iconfont">&#xe665;</i> 记录查询</button>
        <button class="btn btn-primary-outline radius" id="get_account"><i class="Hui-iconfont">&#xe644;</i> 导出账单</a></button>
        </span>
       
    </div>
    </div>
    </form>
   <!--  <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"><a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> <a href="javascript:;" onclick="member_add('添加用户','member-add.html','','510')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加用户</a></span> <span class="r">共有数据：<strong>88</strong> 条</span> </div> -->
    <div class="mt-20">
    <table class="table table-border table-bordered table-hover table-bg table-sort">
        <thead>
            <tr role="row"><th rowspan="1" scope="col" colspan="10">{$title}</th></tr>
            <tr class="text-c">
                <th>#</th>
                <th>账单号</th>
                <th>支付时间</th>
                <th>缴费人姓名</th>
                <th>户主联系方式</th>
                <th>支付方式</th>
                <th>金额</th>
                <th>地址</th>
                <th>备注</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <volist name="data" id="v">
                <tr class="text-c">
                    <td>{$v.id}</td>
                    <td>{$v.no}</td>
                    <td>{$v['pay_time']|date='Y-m-d',###}</td>
                    <td>{$v.payer_name}</td>
                    <td>{$v.tel}</td>
                    <td>{$v.pay_way}</td>
                    <td>{$v.pay_money}</td>
                    <td>{$v.full_parent_name}{$v.name}</td>
                    <td>{$v.remark}</td>
                    <td class="td-status"><a href="javascript:to('{:U('Assistant/Account/manage',array('id'=>$v['account_id'],'isLook'=>1))}');"><span class="label label-success radius">详情</span></a></td>
                </tr>
            </volist>
        </tbody>
    </table>
    <div style="width: 100%;margin: 10px 0">{$page}</div>
    </div>
</div>
<script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/laypage/1.2/laypage.js"></script> 
<!-- <script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script>  -->
<script type="text/javascript" src="__PUBLIC__/lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.admin.js"></script>  
<script type="text/javascript">
        $(document).on("click","#get_account",function(){
            var start_time = $("#datemin").val();
            var end_time = $("#datemax").val();
            var key = $("#search").val();
            var url='/index.php?m=Assistant&c=Account&a=dumpExcel&key='+key+'&start_time='+start_time+'&end_time='+end_time;
            window.open(url);
        });

        function to(url){
            layer.open({
                type: 2,
                title: '订单详情',
                maxmin: true,
                fix:false,
                area: ['820px', '500px'],
                content: url
            });

        }
</script> 

</body>

</html>

